package com.bitcola.security.activity.controller;

import com.bitcola.security.activity.biz.BalanceChangeBiz;
import com.bitcola.security.common.context.BaseContextHandler;
import com.bitcola.security.common.msg.AppResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 *  @author wx
 * @create 2018-11-30 11:16
 **/
@RestController
@RequestMapping("prize")
public class PrizeController {

    @Autowired
    BalanceChangeBiz  balanceChangeBiz;


    @RequestMapping(value = "queryLog")
    public AppResponse queryLog(int page, int size ,String status){
        String userId = BaseContextHandler.getUserID();

        return AppResponse.ok().data(balanceChangeBiz.queryPrize(userId,status,page,size));


    }

}
